def qiuhe(num, time: int = 10):
    num_1 = num
    num_2 = num_1 * 2
    num_3 = num_2 * 2
    num_4 = num_3 * 2.3
    num_5 = num_4 * 2.3
    num_6 = num_5 * 2.3
    num_7 = num_6 * 2.3
    num_8 = num_7 * 2.3
    num_9 = num_8 * 2.3
    tmp = num_1 + num_2 + num_3 + num_4 + num_5 + num_6 + num_7 + num_8 + num_9
    if time == 9:
        return "第9次为：{}, 9次总共需要{}".format(num_9, tmp)
    elif time == 10:
        num_10 = num_9 * 2.3
        tmp =tmp +num_10
        return "第十次为：{}, 10次总共需要{}".format(num_10, tmp)
    elif time == 11:
        num_10 = num_9 * 2.3
        num_11 = num_10 * 2.3
        tmp = tmp + num_10+num_11
        return "第11次为：{}, 11次总共需要{}".format(num_11, tmp)
    else:
        return '次数需要大于10'

def baoshou(num, time: int = 10):
    num_1 = num
    num_2 = num_1 * 2
    num_3 = num_2 * 2
    num_4 = num_3 * 2.3
    num_5 = num_4 * 2.3
    num_6 = num_5 * 2.3
    num_7 = num_6 * 2.3
    tmp = num_1 + num_2 + num_3 + num_4 + num_5 + num_6 + num_7
    if time==7:
        return "第7次为：{}, 7次总共需要{}".format(num_7, tmp)
    if time ==8:
        beishu = tmp / num_7
        print('8次的倍数',beishu)
        num_8 = num_7 * beishu
        tmp = tmp+num_8
        return "第8次为：{}, 8次总共需要{}".format(num_8, tmp)
    if time == 9:
        beishu = tmp / num_7
        num_8 = num_7 * beishu
        tmp = tmp+num_8
        beishu = tmp/num_8
        print('9次的倍数',beishu)
        num_9 = num_8 * beishu
        tmp = tmp+num_9
        return "第9次为：{}, 9次总共需要{}".format(num_9, tmp)
    elif time == 10:
        beishu = tmp / num_7
        num_8 = num_7 * beishu
        tmp = tmp+num_8
        beishu = tmp/num_8
        num_9 = num_8 * beishu
        tmp = tmp+num_9
        beishu = tmp/num_9
        print('10次的倍数',beishu)
        num_10 = num_9 * beishu
        tmp =tmp +num_10
        return "第十次为：{}, 10次总共需要{}".format(num_10, tmp)
    elif time == 11:
        beishu = tmp / num_7
        num_8 = num_7 * beishu
        tmp = tmp+num_8
        beishu = tmp/num_8
        num_9 = num_8 * beishu
        tmp = tmp+num_9
        beishu = tmp/num_9
        num_10 = num_9 * beishu
        tmp =tmp +num_10
        beishu = tmp/num_10
        print('11次的倍数', beishu)
        num_11 = num_10 * beishu
        tmp = tmp + num_11
        return "第11次为：{}, 11次总共需要{}".format(num_11, tmp)
    elif time == 12:
        beishu = tmp / num_7
        num_8 = num_7 * beishu
        tmp = tmp+num_8
        beishu = tmp/num_8
        num_9 = num_8 * beishu
        tmp = tmp+num_9
        beishu = tmp/num_9
        num_10 = num_9 * beishu
        tmp =tmp +num_10
        beishu = tmp/num_10
        num_11 = num_10 * beishu
        tmp = tmp + num_11
        beishu = tmp / num_11
        print('12次的倍数', beishu)
        num_12 = num_11 * beishu
        tmp = tmp + num_12
        return "第12次为：{}, 12次总共需要{}".format(num_12, tmp)
    else:
        return '次数需要大于10'

if __name__ == '__main__':
    # a_7 = baoshou(1,7)
    # a_8 = baoshou(1,8)
    # a_9 = baoshou(1,9)
    # a_10 = baoshou(1,10)
    # a_11 = baoshou(1,11)
    # a_12 = baoshou(1,12)
    # print(a_7)
    # print(a_8)
    # print(a_9)
    # print(a_10)
    # print(a_11)
    # print(a_12)
    a = baoshou(2.8,11)
    print(a)
    b = qiuhe(1,10)
    print(b)



